package xcmg.device.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.company.SupplierClassDO;
import xcmg.device.service.vo.company.SupplierClassVO;

import java.util.List;

@Mapper
public interface SupplierClassMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SupplierClassDO record);

    SupplierClassDO item(Long id);

    int update(SupplierClassDO record);

    String getMaxValue(@Param("pId") Long pId,@Param("orgId")String orgId);

    List<SupplierClassDO> list(SupplierClassVO record);

    int deleteByValue(@Param("orgId") String orgId,@Param("classValue") String classValue);

    Integer classNameCount(SupplierClassDO record);
}